<?php


namespace app\hotel\validate;


use think\Validate;

class FilesValidate extends Validate
{
    protected $rule = [
        'image|图片'         => 'require|fileMime:image/jpeg,image/png|fileSize:' . 10 * 1024 * 1024,
    ];

    protected $message  =   [
        'image.fileSize' => '图片过大，最大不能超过10MB',
        'image.fileMime' => '图片格式错误',
    ];

    protected $scene = [
        'file' => ['image'] ,
    ];
}